/**
  ETFDAQ Project
  \class TAMutexLocker
  \brief a mutex locker that unlock a mutex in its dtor
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2024-08-25
  \date 2024-08-25 last modified

  \copyright Copyright (c) 2021-2024 IMP-CAS with LGPLv3 LICENSE
*/

#include "TAMutexLocker.h"

TAMutexLocker::TAMutexLocker(std::mutex *m) : fMutex(m){ fMutex->lock(); }

TAMutexLocker::~TAMutexLocker(){ fMutex->unlock(); }
